/*
 * @Author: 樊鹏 web27356@163.com
 * @Date: 2023-06-27 09:57:43
 * @LastEditors: 樊鹏 web27356@163.com
 * @LastEditTime: 2023-06-27 10:21:42
 * @FilePath: \platform\src\pages\user\login\context.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React, { Context } from 'react'
import { loginContextType } from './interface/index'

export const createContext = <T extends object>(defaultValue: T): Context<T> => React.createContext(defaultValue)

export const loginContext = createContext<loginContextType>({})
